From: Adel Gadllah Date: Mon, 26 Sep 2011 18:33:59 +0000 (+0200) Subject: layoutManager: Treat screen_sized OR windows as fullscreen X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7532 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1e2d16273c6ae68a13c5f235025273f054129744;p=gnome-shell.git layoutManager: Treat screen_sized OR windows as fullscreen https://bugzilla.gnome.org/show_bug.cgi?id=660166 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index f21fcca30..a50c9f222 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -825,6 +825,13 @@ Chrome.prototype = { monitor.inFullscreen = true; } if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) { + // Check whether the window is screen sized + if (window.x == 0 && window.y == 0 && + window.width == global.screen_width && + window.height == global.screen_height) + monitor.inFullscreen = true; + + // Or whether it is monitor sized let monitor = this._findMonitorForWindow(window); if (monitor && window.x <= monitor.x &&